﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace SZ.Mech
{
    public class HediffCompProperties_FreezeJoy : HediffCompProperties
    {
        public HediffCompProperties_FreezeJoy()
        {
            this.compClass = typeof(HediffComp_FreezeJoy);
        }

    }

    public class HediffComp_FreezeJoy : HediffComp
    {

        public override void CompPostTick(ref float severityAdjustment)
        {
            base.CompPostTick(ref severityAdjustment);

            if( this.Pawn.needs.joy!=null)
            {
                this.Pawn.needs.joy.CurLevel = 1f;
            }
            //this.Pawn.needs.play.CurLevel = 1;
            // this.Pawn.health.ha
            //this.Pawn.needs.joy.CurLevel = 1;

        }
    }
}